// Text3D.cpp
//
//////////////////////////////////////////////////////////////////////

#include "Text3D.h"
#include "Engine3D.h"

Text3D::Text3D():color(1,1,1){
	text=NULL;	
}

Text3D::~Text3D(){
	delete [] text;
}

void Text3D::render(Engine3D * e){
	e->render(this);
}

LIB3D_RETURN Text3D::setText(char * t){
	delete [] text;
	text=new char[strlen(t)+1];
	strcpy(text,t);
	dirty=1;
	return LIB3D_OK;
}

char * Text3D::getText(){
	return text;
}

Vector3D Text3D::getColor(){
	return color;
}

LIB3D_RETURN Text3D::setColor(Vector3D c){
	color=c;
	return LIB3D_OK;
}

